package com.tudouji.project.harvest.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tudouji.project.harvest.mapper.DpriceApplyMapper;
import com.tudouji.project.harvest.domain.DpriceApply;
import com.tudouji.project.harvest.service.IDpriceApplyService;

/**
 * 淀粉薯定价Service业务层处理
 * 
 * @author tudouji
 * @date 2022-10-27
 */
@Service
public class DpriceApplyServiceImpl implements IDpriceApplyService 
{
    @Autowired
    private DpriceApplyMapper dpriceApplyMapper;

    /**
     * 查询淀粉薯定价
     * 
     * @param guid 淀粉薯定价ID
     * @return 淀粉薯定价
     */
    @Override
    public DpriceApply selectDpriceApplyById(String guid)
    {
        return dpriceApplyMapper.selectDpriceApplyById(guid);
    }

    /**
     * 查询淀粉薯定价列表
     * 
     * @param dpriceApply 淀粉薯定价
     * @return 淀粉薯定价
     */
    @Override
    public List<DpriceApply> selectDpriceApplyList(DpriceApply dpriceApply)
    {
        return dpriceApplyMapper.selectDpriceApplyList(dpriceApply);
    }

    /**
     * 新增淀粉薯定价
     * 
     * @param dpriceApply 淀粉薯定价
     * @return 结果
     */
    @Override
    public int insertDpriceApply(DpriceApply dpriceApply)
    {
        return dpriceApplyMapper.insertDpriceApply(dpriceApply);
    }

    /**
     * 修改淀粉薯定价
     * 
     * @param dpriceApply 淀粉薯定价
     * @return 结果
     */
    @Override
    public int updateDpriceApply(DpriceApply dpriceApply)
    {
        return dpriceApplyMapper.updateDpriceApply(dpriceApply);
    }

    /**
     * 批量删除淀粉薯定价
     * 
     * @param guids 需要删除的淀粉薯定价ID
     * @return 结果
     */
    @Override
    public int deleteDpriceApplyByIds(String[] guids)
    {
        return dpriceApplyMapper.deleteDpriceApplyByIds(guids);
    }

    /**
     * 删除淀粉薯定价信息
     * 
     * @param guid 淀粉薯定价ID
     * @return 结果
     */
    @Override
    public int deleteDpriceApplyById(String guid)
    {
        return dpriceApplyMapper.deleteDpriceApplyById(guid);
    }
}
